]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspaceThumbnails: Fix creating new workspace via DND
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 21 Feb 2014 09:38:29 +0000 (10:38 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 21 Feb 2014 10:48:55 +0000 (11:48 +0100)
Commit 61a58ff3c981d4 replaced the (removed in commit 254afc50223a7)
MetaWindowActor.get_workspace() method by MetaWindow.get_workspace(),
but did not take into account that the return values differ - the
former returns the workspace index, the latter the workspace object.

https://bugzilla.gnome.org/show_bug.cgi?id=724686

js/ui/workspaceThumbnail.js

index 7b7bc908ee8bf98a9263494e39792fa60b867362..913ed2329b7ade86cfa62e03496b3c4163ccce02 100644 (file)
@@ -822,7 +822,7 @@ const ThumbnailsBox = new Lang.Class({
             // ... move them down one.
             windows.forEach(function(winActor) {
                 let window = winActor.meta_window;
-                window.change_workspace_by_index(window.get_workspace() + 1, true);
+                window.change_workspace_by_index(window.get_workspace().index() + 1, true);
             });
 
             if (isWindow)